home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98a.txt / 000000_icon-group-sender _Thu Jan 8 12:46:37 1998.msg next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.7/8.8.7) with SMTP id MAA24593
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Thu, 8 Jan 1998 12:46:37 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA16979; Thu, 8 Jan 1998 12:46:37 -0700
  7. Date: Thu, 8 Jan 1998 08:33:34 -0700
  8. From: swampler@noao.edu (Steve Wampler)
  9. Subject: Stripping blank and comment lines
  10. To: icon-group@optima.CS.Arizona.EDU
  11. Message-Id: <swampler-9800081533.AA0009292@orpheus.gemini.edu>
  12. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  13. Status: RO
  14. Content-Length: 1007
  15.  
  16.  
  17. Since there hasn't been much traffic here recently, I thought I'd pose a
  18. little problem for people to play with.  This isn't too hard, but there
  19. are probably a number of interesting solutions.
  20.  
  21. I always here people bragging about lines of code (some brag about how
  22. much, others about how little, no one brags about having just the right
  23. amount...).  Normally, this goes something like, "Well, if you strip out
  24. blank lines and comments, there's (still/only) XXXX lines of code."
  25.  
  26. So:
  27.  
  28.    Write a program that strips out blank lines and comment lines (lines
  29.    that only contain a comment) from Icon programs.  The program should
  30.    accept 0 or more file names as arguments and copy the files to standard
  31.    output with all blank and comment lines removed.  If no arguments are
  32.    given, then the program should read from standard input.
  33.  
  34.  
  35. --
  36. Steve Wampler - swampler@gemini.edu [Gemini 8m Telescopes Project (under AURA)]
  37. O Sibile, si ergo, fortibus es inero.
  38. Nobile, demis trux.  Demis phulla causan dux.
  39.